package com.motong.gongdan.vo.resp;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.motong.gongdan.vo.system.otherVo.CustomFieldVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author:fff
 * @time:2022/4/14
 */
@Data
@ApiModel(value = "库存收发明细类")
public class StockDetailResp {
    @ExcelProperty(value = "序号", index = 0)
    @ApiModelProperty("库存明细id")
    private Integer id;
    @ExcelIgnore
    @ApiModelProperty("产品id")
    private Integer productId;
    @ExcelProperty(value = "产品名称", index = 1)
    private String productName;
    @ColumnWidth(25)
    @ExcelProperty(value = "产品编号", index = 2)
    private String productCode;
    @ExcelProperty(value = "产品规格", index = 3)
    private String productSpecification;
    @ExcelProperty(value = "库存单位", index = 4)
    private String unit;
    @ExcelProperty(value = "单据数量", index = 5)
    private Integer num;
    @ExcelProperty(value = "库存变更数量", index = 6)
    private Integer changeNum;
    @ExcelProperty(value = "库存收发时间", index = 7)
    private Date stockTime;
    @ExcelProperty(value = "来源单据类型", index = 8)
    private String type;
    @ExcelProperty(value = "来源单据编号", index = 9)
    private String stockCode;
    @ExcelProperty(value = "库存类型", index = 10)
    private String typeOther;
    @ExcelProperty(value = "备注", index = 11)
    private String comment;
    @ColumnWidth(20)
    @ExcelProperty(value = "创建时间", index = 12)
    private Date createTime;
    @ExcelProperty(value = "创建人", index = 13)
    private String createName;
    @ExcelProperty(value = "最后更新时间", index = 14)
    private Date updateTime;
    @ExcelProperty(value = "最小库存", index = 15)
    private BigDecimal minimum;
    @ExcelProperty(value = "最大库存", index = 16)
    private BigDecimal maximum;
    @ExcelProperty(value = "安全库存", index = 17)
    private BigDecimal safe;
    @ExcelProperty(value = "当前库存数量", index = 18)
    private BigDecimal nowNum;

    @ExcelIgnore
    private String other;
    @ExcelIgnore
    @ApiModelProperty("自定义字段")
    private List<CustomFieldVo> customFieldVos;
    @ExcelIgnore
    @ApiModelProperty("工艺路线名称")
    private String processRouteName;
    @ExcelIgnore
    @ApiModelProperty("产品属性")
    private Integer attribute;
    @ExcelIgnore
    @ApiModelProperty("产品属性名称")
    private String attributeName;
    @ExcelIgnore
    private Integer smId;
}
